﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthTemplate.Entity.Common
{
    public static class RelevanceType
    {
        public const string USERROLE = "UserRole";       //用户角色关联KEY
        public const string ROLERESOURCE = "RoleResource";  //角色资源关联KEY
        public const string USERRESOURCE = "UserResource";  //用户资源关联KEY
        public const string USERORG = "UserOrg";  //用户机构关联KEY
        public const string ROLEORG = "RoleOrg";  //角色机构关联KEY
        public const string USERELEMENT = "UserElement";  //用户菜单关联KEY
        public const string ROLEELEMENT = "RoleElement"; //角色菜单关联KEY
        public const string USERMODULE = "UserModule";   //用户模块关联KEY
        public const string ROLEMODULE = "RoleModule";   //角色模块关联KEY

        public static Dictionary<string, string> RelevanceTypeName = new Dictionary<string, string>()
        {
            { USERROLE , "用户所属角色"},
            { ROLERESOURCE , "角色可用资源"},
            { USERRESOURCE , "用户可用资源"},
            { USERORG , "用户所属机构"},
            { ROLEORG , "角色所属机构"},
            { USERELEMENT , "用户接口权限"},
            { ROLEELEMENT , "角色接口权限"},
            { USERMODULE , "用户模块权限"},
            { ROLEMODULE , "角色模块权限"}
        };
    }
}
